]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: add a few more states to getStatusLabel()
authorDan Winship <danw@gnome.org>
Tue, 19 Apr 2011 13:31:54 +0000 (09:31 -0400)
committerDan Winship <danw@gnome.org>
Mon, 25 Apr 2011 13:13:48 +0000 (09:13 -0400)
The IP_CHECK and SECONDARIES states should be considered part of the
"connecting..." phase.

DEACTIVATING should be its own stage, but that would break string
freeze, so we just treat it like DISCONNECTED for now.

UNMANAGED needs to be treated differently in 3.2, but it is too late
to fix it for 3.0.1.

https://bugzilla.gnome.org/show_bug.cgi?id=646946

js/ui/status/network.js

index 48a7a1668ad1eea453238c0054ebbfe0c6f48e26..6fa5642237ae0e2fc99b15c02f99f58caa670a4f 100644 (file)
@@ -513,11 +513,14 @@ NMDevice.prototype = {
         switch(this.device.state) {
         case NetworkManager.DeviceState.UNMANAGED:
         case NetworkManager.DeviceState.DISCONNECTED:
+        case NetworkManager.DeviceState.DEACTIVATING:
         case NetworkManager.DeviceState.ACTIVATED:
             return null;
         case NetworkManager.DeviceState.PREPARE:
         case NetworkManager.DeviceState.CONFIG:
         case NetworkManager.DeviceState.IP_CONFIG:
+        case NetworkManager.DeviceState.IP_CHECK:
+        case NetworkManager.DeviceState.SECONDARIES:
             return _("connecting...");
         case NetworkManager.DeviceState.NEED_AUTH:
             /* Translators: this is for network connections that require some kind of key or password */